/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package net.sf.odinms.net.channel.handler;

import net.sf.odinms.client.MapleClient;
import net.sf.odinms.net.AbstractMaplePacketHandler;
import net.sf.odinms.server.maps.MapleReactor;
import net.sf.odinms.tools.MaplePacketCreator;
import net.sf.odinms.tools.data.input.SeekableLittleEndianAccessor;

/**
 *
 * @author Small丶Hyun
 */
public class 挖矿处理 extends AbstractMaplePacketHandler{

    public void handlePacket(SeekableLittleEndianAccessor slea, MapleClient c) {
        //3B 01 67 00 00 00
        int oid = slea.readInt();//动作
        MapleReactor reactor = c.getPlayer().getMap().getReactorByOid(oid);
        if (reactor != null && reactor.isAlive()) {
            reactor.hitReactor(c);
        }
    }

}